package com.party.core.service.analysis;

import com.party.common.paging.Page;
import com.party.core.model.analysis.StatisticsEventFlow;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @program: party-temp
 * @description: 统计事件流程接口
 * @author: Huaqunhao
 * @create: 2018-08-01 11:51
 **/
public interface IStatisticsEventFlowService extends IBaseService<StatisticsEventFlow> {

    List<StatisticsEventFlow> getByUniqueCode(String uniqueCode);

    List<StatisticsEventFlow> findByEventId(String eventId, Map<String, Object> params);

    StatisticsEventFlow getNewFlow(String uniqueCode);

    List<StatisticsEventFlow> queryEventBydate(String startDate, String endDate, int pageNum, int pageSize);

    int queryEventTotalNumByDate(String startDate, String endDate);

    /**
     * @Description: 通过时间查询事件详情表数据
     * @Param:
     * @return:
     * @Author: Hua Qunhao
     * @Date: 2018/12/25
     */
    List<StatisticsEventFlow> queryEventFlowListByDate(String queryDate, Page page);

    /**
     * @Description: 通过时间查询事件详情表数量
     * @Param:
     * @return:
     * @Author: Hua Qunhao
     * @Date: 2018/12/25
     */
    int queryEventFlowCountByDate(String queryDate, Integer total);

    /**
     * @Description: 通过时间批量删除事件
     * @Param:
     * @return:
     * @Author: Hua Qunhao
     * @Date: 2019/1/3
     */
    void deleteEventFlowByQueryDate(String queryDate, Integer total);
}
